package com.example._01helloword.model;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "person")
public class Person {
    /*@Value("${person.name}")*/
    private String name;
    /*@Value("${person.age}")*/
    private int age;
}
